home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / misc_lib / genmat.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-30  |  1.5 KB  |  39 lines

  1. /*****************************************************************************
  2. * General definitions of/for GenMat.c module                     *
  3. *****************************************************************************/
  4.  
  5. #ifndef    GEN_MAT_H
  6. #define GEN_MAT_H
  7.  
  8. /* And prototypes of the functions: */
  9.  
  10. #if defined(__cplusplus) || defined(c_plusplus)
  11. extern "C" {
  12. #endif
  13.  
  14. void MatGenUnitMat(MatrixType Mat);
  15. void MatGenMatTrans(RealType Tx, RealType Ty, RealType Tz, MatrixType Mat);
  16. void MatGenMatScale(RealType Sx, RealType Sy, RealType Sz, MatrixType Mat);
  17. void MatGenMatRotX1(RealType Teta, MatrixType Mat);
  18. void MatGenMatRotX(RealType CosTeta, RealType SinTeta, MatrixType Mat);
  19. void MatGenMatRotY1(RealType Teta, MatrixType Mat);
  20. void MatGenMatRotY(RealType CosTeta, RealType SinTeta, MatrixType Mat);
  21. void MatGenMatRotZ1(RealType Teta, MatrixType Mat);
  22. void MatGenMatRotZ(RealType CosTeta, RealType SinTeta, MatrixType Mat);
  23.  
  24. void MatMultTwo4by4(MatrixType MatRes, MatrixType Mat1, MatrixType Mat2);
  25. void MatAddTwo4by4(MatrixType MatRes, MatrixType Mat1, MatrixType Mat2);
  26. void MatSubTwo4by4(MatrixType MatRes, MatrixType Mat1, MatrixType Mat2);
  27. void MatScale4by4(MatrixType MatRes, MatrixType Mat, RealType *Scale);
  28.  
  29. void MatMultVecby4by4(RealType VRes[3], RealType Vec[3], MatrixType Mat);
  30. void MatMultWVecby4by4(RealType VRes[4], RealType Vec[4], MatrixType Mat);
  31.  
  32. int MatInverseMatrix(MatrixType M, MatrixType InvM);
  33.  
  34. #if defined(__cplusplus) || defined(c_plusplus)
  35. }
  36. #endif
  37.  
  38. #endif /* GEN_MAT_H */
  39.